package com.itheima.Demo01.demo02;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Test03 {
    public static void main(String[] args) throws IOException {
        FileInputStream flie = new FileInputStream("dya0610-code");

        //在对象中获取一个字节转换成基本类型
        int read = flie.read();
        flie.close();



        //强转为char类型字符
        System.out.println((char) read+"----");

    }
}
